{% extends 'stu_exambase.html' %}

{% block que %}
    <h5>分值{{ question.value }}</h5>
    {{ question.question|safe }}
    {% if question.type == 'single' %}
        <form action=""method="post">
        {%csrf_token %}
            <p><input type="text"name="myanswer" value="{{ student_answer.ans }}"></p>
            <input type="submit" value="保存">
        </form>
    {% elif question.type == 'multiple' %}
         <form action=""method="post">
        {%csrf_token %}
            <p><input type="text"name="myanswer" value="{{ student_answer.ans }}"></p>
            <input type="submit" value="保存">
        </form>
    {% else %}
             <form action=""method="post">
        {%csrf_token %}
            {{ form }}
            <input type="submit" value="保存">
        </form>
    {% endif %}


{% endblock %}